package com.example.libraryms.model.dto;

import com.example.libraryms.model.base.BaseDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Cauli
 * @date 2023/7/31 12:02
 * @description 图书添加参数
 */
@Data
@ApiModel(value = "BookAddDTO" , description = "图书添加参数")
public class BookAddDTO extends BaseDTO {
    @ApiModelProperty(value = "分类编号")
    Integer typeNo;

    @ApiModelProperty(value = "图书名称")
    String name;

    @ApiModelProperty("价格")
    BigDecimal price;

    @ApiModelProperty("出版时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    Date pubTime;

    @ApiModelProperty("作者")
    String author;

    @ApiModelProperty("出版社")
    String pubCompany;
}
